// Browser.h: interface for the Browser class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_BROWSER_H__3B477DFC_226E_11D4_81D2_00C0DFEA7C68__INCLUDED_)
#define AFX_BROWSER_H__3B477DFC_226E_11D4_81D2_00C0DFEA7C68__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "BrowserPeer.h"

class CLASS_DECL_D Browser : public AWTComponent  
{
DECLARE_DYNAMIC(Browser)
public:
	Browser();
	Browser(CString& url);
	Browser(LPTSTR url);
	virtual ~Browser();

	void setURL(LPTSTR szUrl)
		{setURL(CString(szUrl));}
	void setURL(CString& url);	
	CString& getURL()
		{return m_url;}

	CSize getMinimumSize();
	CSize getPreferredSize();
	
protected:
	CWnd* createComponent();

	CString m_url;

};

#endif // !defined(AFX_BROWSER_H__3B477DFC_226E_11D4_81D2_00C0DFEA7C68__INCLUDED_)
